﻿<script>
    function logout() {
       WebSecurity.Logout();
 }
</script>
<div id="container">
  <div id="wrapper">
    <div id="top">
      <div class="logo"><a href="#"><span>FYP</span> Management System</a>
       </div>
      <ul class="login">
        <li class="left">&nbsp;</li>
        <li><a href="/Account/Login"></a></li>
           @if (WebSecurity.IsAuthenticated)
           {
               <li>Welcome,<a href="/Account/Manage">
               <span>@WebSecurity.CurrentUserName</span></a></li>
                 
               <li><a href="/MeetingScheduler/MeetingScheduler?status=logout" onclick="logout()">
                <span>Logout</span></a></li>
           }
      </ul>
    </div>
    <ul id="nav">
      <li class="left">&nbsp;</li>
      <li><a class="active" href="#">Home</a></li>
         @if (WebSecurity.IsAuthenticated && Roles.IsUserInRole("Advisor"))
         {
              <li><a href="/ReserveProject/ProjectList">Project List</a></li>
         }
         else if (WebSecurity.IsAuthenticated && Roles.IsUserInRole("ProjectOffice"))
         {
           <li><a href="/ReserveProject/RequestList">FYP Request List<img src="/Images/nav_bullet.jpg" alt="" /></a>
             <ul>
              <li><a href="/ReserveProject/ProjectList">Project List</a></li>
             </ul>
           </li>
         }
         else
         {
            <li><a href="/ReserveProject/StudentView">Reserve Project<img src="/Images/nav_bullet.jpg" alt="" /></a>
             <ul>
                 <li><a href="/ReserveProject/ProjectList">Project List</a></li>
                 <li><a href="/ReserveProject/ViewList">Student View</a></li>
             </ul>
            </li>
         }
      
     @* <li><a href="/CreateAttendanceSheet/MarkAttendance">Attendance Sheet</a></li>*@
     
         @* <li><a href="/TimeSheet/TeacherView">TimeSheet</a></li>
          <li> <a  href="#">Task<img src="/Images/nav_bullet.jpg" alt="" /></a>*@
      
         @if (WebSecurity.IsAuthenticated && Roles.IsUserInRole("Advisor"))
         {
          <li><a href="/SubmitArtifact/TeacherView">Submit Artifact</a></li>
           
         }
         else
         {
             <li><a href="/SubmitArtifact/StudentView">Submit Artifact</a></li>
         }

         @if (WebSecurity.IsAuthenticated && Roles.IsUserInRole("Advisor"))
         {
             <li><a href="#">Agile Tasks<img src="/Images/nav_bullet.jpg" alt="" /></a>
              <ul>
                    <li><a href="/SubmitDailyTask/TeacherView">Assigned Daily Task</a></li>
              </ul>
             </li>
         }
         else
         {
             <li><a href="#">Agile Tasks<img src="/Images/nav_bullet.jpg" alt="" /></a>
              <ul>
               
                    <li><a href="/SubmitDailyTask/StudentView">Submit Daily Task</a></li>
                    <li><a href="/SubmitDailyTask/ViewTaskList">View Tasks</a></li>
              </ul>
             </li>
         }

      @if (WebSecurity.IsAuthenticated && Roles.IsUserInRole("Advisor"))
      {
        <li> <a href="/MeetingScheduler/MeetingScheduler">Meeting Scheduler<img src="/Images/nav_bullet.jpg" alt="" /></a>
        <ul>
          <li><a href="/MeetingMinute/MeetingMinute">Meeting Minutes</a></li>
          <li><a href="/MeetingMinute/MeetingList">Meeting Minutes List</a></li>
          <li><a href="/MeetingScheduler/MeetingSchedulerList">Meeting Scheduler List</a></li>
        </ul>
      </li>
       <li> <a href="/DiscussionPanel/ViewProblems">Discussion Panel </a></li>
       <li><a href="/Notification/Notification">Notifications</a></li>
      }
      else
      {
      <li> <a href="#">Meeting Scheduler<img src="/Images/nav_bullet.jpg" alt="" /></a>
        <ul>
          <li><a href="/MeetingMinute/MeetingList">Meeting Minutes List</a></li>
        </ul>
      </li>
      <li> <a  href="/DiscussionPanel/ViewProblems">Discussion Panel </a></li>
      <li><a href="/Notification/Notification">Notifications</a></li>
      }
      <li class="sep">&nbsp;</li>
      <li class="right">&nbsp;</li>
    </ul>
    <div id="header">
      <div class="intro">
        </div>
    </div>